/*
  Copyright � 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  ThanhNam ERP Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using VINETLIFE.DAL;
using VINETLIFE.DO;
using System.Collections.Generic;
/// <summary>
/// Summary description for cmsProductLocationBL
/// </summary>
namespace VINETLIFE.BL 
{
    public class cmsProductLocationBL 
    {
    	#region Private Variables
		cmsProductLocationDAL objcmsProductLocationDAL;
		#endregion
		
        #region Public Constructors
        public cmsProductLocationBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsProductLocationDAL=new cmsProductLocationDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsProductLocationDO objcmsProductLocationDO)
        {
            return objcmsProductLocationDAL.Insert(objcmsProductLocationDO);
        }

        public int Update(cmsProductLocationDO objcmsProductLocationDO)
        {
             return objcmsProductLocationDAL.Update(objcmsProductLocationDO);

        }

        public int Delete(cmsProductLocationDO objcmsProductLocationDO)
        {
             return objcmsProductLocationDAL.Delete(objcmsProductLocationDO);

        }
        public int DeleteByProductCode(string productCode)
        {
            return objcmsProductLocationDAL.DeleteByProductCode(productCode);

        }
        public int UpdateOrInsert(cmsProductLocationDO objcmsProductLocationDO)
        {
            return objcmsProductLocationDAL.UpdateOrInsert(objcmsProductLocationDO);
        }
         public int DeleteAll()
        {
             return objcmsProductLocationDAL.DeleteAll();
        }

        public cmsProductLocationDO Select(cmsProductLocationDO objcmsProductLocationDO)
        {
            return objcmsProductLocationDAL.Select(objcmsProductLocationDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsProductLocationDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsProductLocationDAL.SelectAll();
        }

        public List<cmsProductLocationDO> SelectListByProductCode(string productCode)
        {
            return objcmsProductLocationDAL.SelectListByProductCode(productCode);
        }
        public DataTable SelectByProductCode(string productCode)
        {
            return objcmsProductLocationDAL.SelectByProductCode(productCode);
        }
     
#endregion          
    
    }

}
